package com.caocaog.market.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.caocaog.market.modules.BaseEntity;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 商品订单行表
 *
 * @author jeecg-boot
 * @date 2021-11-29
 */
@Data
@TableName("mk_order_line")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mk_order_line对象", description = "商品订单行表")
public class OrderLine extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
    @Excel(name = "订单主键", width = 15)
    @ApiModelProperty(value = "订单主键")
    private String orderId;
    /**
     * 订单号
     */
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String orderNo;
    /**
     * 商品历史ID
     */
    @Excel(name = "商品历史ID", width = 15)
    @ApiModelProperty(value = "商品历史ID")
    private String goodsHisId;
    /**
     * 所选规格ID
     */
    @Excel(name = "所选规格ID", width = 15)
    @ApiModelProperty(value = "所选规格ID")
    private String specHisId;
    /**
     * 数量
     */
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private Integer quantity;
    /**
     * 合计价格
     */
    @Excel(name = "合计价格", width = 15)
    @ApiModelProperty(value = "合计价格")
    private String totalPrice;
    /**
     * 商品备注
     */
    @Excel(name = "商品备注", width = 15)
    @ApiModelProperty(value = "商品备注")
    private String remark;

    /**
     * 所选商品名称
     */
    @ApiModelProperty(value = "所选商品名称")
    private String goodsName;

    /**
     * 所选规格名称
     */
    @ApiModelProperty(value = "所选规格名称")
    private String nameStr;

    /**
     * 商品ID
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "商品ID")
    private String goodsId;

    /**
     * 商品图片
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "商品图片")
    private String picture;
}
